#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from rest_framework.routers import SimpleRouter
from . import views
from .views import *

router = SimpleRouter()
router.register("api/vehicle", VehicleInfoModelViewSet)
router.register("api/vehicle_fence", VehicleFenceModelViewSet)
router.register("api/vehicle_move", VehicleMoveInfoModelViewSet)
router.register("api/vehicle_fault", VehicleFaultInfoModelViewSet)
router.register("api/vehicle_fault_log", VehicleFaultLogModelViewSet)
# router.register("api/vehicle_info/real_data/vin123", vehicle_s)

urlpatterns = [

    path("api/vehicle_info/real_data/<str:pk>", views.vehicle_s.as_view())
]
urlpatterns += router.urls
